<?php $this->_extends('../_layouts/default_layout'); ?>
<?php $this->_block('contents'); ?>
<link type="text/css" href="<?=Q::ini('custom_system/base_url')?>css/jq.autocomplete.css" rel="stylesheet" />
<script type="text/javascript" src="<?=Q::ini('custom_system/base_url')?>js/jq.autocomplete.js"></script>
<form method="post" action="<?=url('Storage::OtherIO/ImportIn')?>" enctype="multipart/form-data">
<table class="form_table">
<tr>
	<th>经手人员</th>
	<td>
		<select name="user_id">
			<?foreach ($user as $u):?>
			<option value="<?=$u['id']?>" <?if($u['id']==CURRENT_USER_ID)echo "selected='selected'"?>><?=$u['name']?></option>
			<?endforeach;?>
		</select>
	</td>
</tr>
<tr>
	<th>选择仓库</th>
	<td>
		<select name="warehouse_id" id="warehouse">
			<?foreach ($warehouse as $w):?>
			<option value="<?=$w['id']?>" <?if(isset($warehouse_id) && $warehouse_id == $w['id'])echo "selected='selected'"?>><?=$w['name']?></option>
			<?endforeach;?>
		</select>
	</td>
</tr>
<tr>
	<th>导入文件</th>
	<td><input type="file" name="infile" id="infile" /></td>
</tr>
<tr>
	<th>备注</th>
	<td><textarea name="notes" cols="50" rows="2"></textarea></td>
</tr>
</table>
<input id="submit" type="submit" class="button" value="导入入库单" /><input type="hidden" name="<?=Q::ini('unique_token_name');?>" value="<?=Helper_BSS_Normal::genToken();?>"/>
</form>
<?php $this->_endblock();?>